#include<stdio.h>
int main()
{int a,b,c,x,y,z;
   char situtation;
scanf("%d %d %d %c",&a,&b,&c,&sitution);
 {
 case'1':if(a<b&&a<c){if(b<c)                           //a is min
  {x=a;y=b;z=c;}
        else if(c<b){x=a;y=c;z=c;}
		};break;
   
  case'2':if(b<a&&b<c){if(a<c){x=b;y=a;z=c;                  //b is min
  }      else if(a>c){x=b;y=c;z=a;}};break;
  
  case'3':if(c<a&&c<b){if(b<a){x=c;y=b;z=a;}
       else if(a<b){x=c;y=a;z=b;}
	   };break;
}
 printf("%d->%d->%d",x,y,z);
 return 0; 
  }
